﻿using MainScene;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[Serializable]
public class SceneConfig
{
    /// <summary>
    /// 场景中配置的物件
    /// </summary>
    public List<ObjectData> objectList;
    /// <summary>
    /// 场景中的默认事件
    /// </summary>
    public List<SceneEventData> defaultEventList;
    /// <summary>
    /// 场景中的引导事件
    /// </summary>
    public List<SceneEventData> storyEventList;

    public SceneConfig()
    {
        objectList = new List<ObjectData>();
        defaultEventList = new List<SceneEventData>();
        storyEventList = new List<SceneEventData>();
    }
    public void SetAllData(SceneConfig sceneConfig)
    {
        objectList.AddRange(sceneConfig.objectList.ToArray());
        defaultEventList.AddRange(sceneConfig.defaultEventList.ToArray());
        storyEventList.AddRange(sceneConfig.storyEventList.ToArray());
    }
}
